﻿<!--@Knockout-->
<div class="box" data-bind="dxBox:{
    direction: directionValue,
    height: '70%',
    width: '90%'
}">
    <div id="item1" data-options="dxItem:{ ratio: 1, baseSize: 10}"><p></p></div>
    <div id="item2" data-options="dxItem:{ ratio: 3, box: { direction: 'col' }}">
        <div class="subitem" data-options="dxItem:{ ratio: 3 }"><p></p></div>
        <div class="subitem" data-options="dxItem:{ ratio: 4 }"><p></p></div>
        <div class="subitem" data-options="dxItem:{ ratio: 5 }"><p></p></div>
    </div>
    <div id="item3" data-options="dxItem:{ ratio: 2, baseSize: 20}"><p></p></div>
</div>
<div class="dx-fieldset">
  <div class="dx-field">
    <div class="dx-field-label">direction</div>
    <div class="dx-field-value" data-bind="dxSelectBox: { value: directionValue, dataSource: directionValues }"></div>
  </div>
</div>
<!--/@Knockout-->
<!--@AngularJS-->
<div ng-controller="demoController" style="height: 100%;">
    <div class="box" dx-box="{
        height: '70%',
        width: '90%',
        bindingOptions: {
            direction: 'directionValue'
        }
    }">
        <div id="item1" data-options="dxItem:{ ratio: 1, baseSize: 10 }"><p></p></div>
        <div id="item2" data-options="dxItem:{ ratio: 3, box: { direction: 'col' }}">
            <div class="subitem" data-options="dxItem:{ ratio: 3 }"><p></p></div>
            <div class="subitem" data-options="dxItem:{ ratio: 4 }"><p></p></div>
            <div class="subitem" data-options="dxItem:{ ratio: 5 }"><p></p></div>
        </div>
        <div id="item3" data-options="dxItem:{ ratio: 2, baseSize: 20 }"><p></p></div>
    </div>
    <div class="dx-fieldset">
      <div class="dx-field">
        <div class="dx-field-label">direction</div>
          <div class="dx-field-value" ng-model="directionValue" dx-select-box="{
            dataSource: directionValues
        }"></div>
      </div>
    </div>
</div>
<!--/@AngularJS-->
<!--@jQuery-->
<div class="box" id="myBox">
    <div id="item1" data-options="dxItem:{ ratio: 1, baseSize: 10 }"><p></p></div>
    <div id="item2" data-options="dxItem:{ ratio: 3, box: { direction: 'col' }}">
        <div class="subitem" data-options="dxItem:{ ratio: 3 }"><p></p></div>
        <div class="subitem" data-options="dxItem:{ ratio: 4 }"><p></p></div>
        <div class="subitem" data-options="dxItem:{ ratio: 5 }"><p></p></div>
    </div>
    <div id="item3" data-options="dxItem:{ ratio: 2, baseSize: 20 }"><p></p></div>
</div>
<div class="dx-fieldset">
  <div class="dx-field">
    <div class="dx-field-label">direction</div>
    <div class="dx-field-value" id="directionSelector"></div>
  </div>
</div>
<!--/@jQuery-->